package com.association.main.dto;

import com.association.main.domain.Clubs;
import com.association.main.domain.Notifications;
import com.association.main.domain.Users;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class NotificationsDto extends Notifications {
    private Clubs clubs;
    private Users users;
    public NotificationsDto(){

    }

    //用于前端展示，屏蔽特殊字段，采用构造方法的方式
    public NotificationsDto(String clubName,String userName,String userEmail,String userPhone,String logo){
        this.clubs = new Clubs();
        this.users = new Users();

        //只需要这几个数据就行
        this.clubs.setName(clubName);
        this.users.setName(userName);
        this.users.setEmail(userEmail);
        this.users.setPhone(userPhone);
        this.clubs.setLogo(logo);
    }





}
